{% extends "sil18VitrineBundle:Default:administration.html.twig" %}

{% block contentAdmin %}
    <h3>Liste des catégories</h3>

    <table class="records_list table table-striped">
        <thead>
            <tr>
                <th>Id</th>
                <th>Intitule</th>
                <th>Urlimage</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('categorie_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                <td>{{ entity.intitule }}</td>
                <td>{{ entity.urlImage }}</td>
                <td>
                    <a href="{{ path('categorie_show', { 'id': entity.id }) }}">
                       <span class="glyphicon glyphicon-eye-open"></span>
                    </a>
                    <a href="{{ path('categorie_edit', { 'id': entity.id }) }}">              
                       <span class="glyphicon glyphicon-cog"></span>
                    </a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    
    <p>
        <a href="{{ path('categorie_new') }}" class="btn btn-link">
            <span class="glyphicon glyphicon-plus"></span> Ajouter une nouvelle catégorie
        </a>        
    </p>
    {% endblock %}
